function test2(str) {
    var obj = document.getElementById(str);
    return obj;
}
var Person = function (name, age) {
    return name + age;
};
var p = Person("zhangsan", 19);
console.log(p);
// 这个工厂函数，用来创建对象
function NPersonFunc(ctx) {
    return new ctx("abc", 123);
}
var ctx = /** @class */ (function () {
    function ctx(name, age) {
        this.name = name;
        this.age = age;
    }
    ctx.prototype.sayHi = function () {
        console.log("hello owrd");
    };
    return ctx;
}());
NPersonFunc(ctx);
var Employeer;
(function (Employeer) {
    Employeer["Name"] = "name";
    Employeer["Age"] = "age";
})(Employeer || (Employeer = {}));
var eName = Employeer.Name;
console.log(eName);
